home *** CD-ROM | disk | FTP | other *** search
- /*
- ### assign color and symbol type to a given periodic orbit or equilibria ###
- */
-
- #include "../include/main_kaos_def.h"
- fp_get_attributes(s,color,s_type,fp_type)
- int *color,*s_type,fp_type;
- char *s;
- {
- extern int my_colormap_size;
-
- switch(fp_type){
- case 0:
- sprintf(s,"SADDLE");
- *color = Green;
- *s_type = CROSS;
- break;
- case 1:
- sprintf(s,"SOURCE");
- *color = Red;
- *s_type = SQUARE;
- break;
- case -1:
- sprintf(s,"SINK");
- *color = Blue;
- *s_type = TRIANGLE;
- break;
- case 2:
- sprintf(s,"SPIRAL SOURCE");
- *color = Red;
- *s_type = SQUARE;
- break;
- case -2:
- sprintf(s,"SPIRAL SINK");
- *color = Blue;
- *s_type = TRIANGLE;
- break;
- default:
- sprintf(s,"NONE");
- *color = my_colormap_size-1;
- *s_type = DOT;
- break;
- }
- }
-